﻿using System;
using System.Collections.Generic;
using System.Text;
using Tauren.Business.Entity.Global;
using Tauren.Business.Entity.Output;
using Tauren.Business.Entity.Model;

namespace Tauren.Business.DLL.TableInfoDLL
{
    public interface ITableInfoBusiness : Base.IBaseDLL
    {
        /// <summary>
        /// 分页获取信息
        /// </summary>
        /// <param name="queryModel"></param>
        /// <param name="Total"></param>
        /// <returns></returns>
        List<PageTableInfoTable> Pages(QueryModel queryModel, out long Total);

        /// <summary>
        /// 判断编码是否重复
        /// </summary>
        /// <param name="AutoId"></param>
        /// <param name="PerCode"></param>
        /// <returns></returns>
        bool IsPermissionCodeRepeat(long AutoId, string Code);

        /// <summary>
        /// 获取序号
        /// </summary>
        /// <returns></returns>
        decimal GetSeq();
        /// <summary>
        /// 创建数据库表
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        bool CreateTbale(TableInfo info);

        /// <summary>
        /// 根据表编码获取表
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        List<VwTableInfo> GetTableInfoByCode(string Code);
        TableInfo Table(string Code);
    }
}
